
package org.cityagents.gui;

import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Point;
import java.util.ArrayList;
import java.util.List;

import javax.swing.JPanel;

import cityagents.core.Direction;
import cityagents.core.WorldMap;
import cityagents.gui.PrincipalPanel;
import cityagents.gui.listeners.RPanelMouseListener;
import cityagents.gui.util.ImagesHandler;

//TODO: ciao 


public class NewRightPanel extends JPanel{
	
	/**
	 * 
	 */
	
	private static final long serialVersionUID = 1L;
	private static final int size = 30;
	private PrincipalPanel superiorPanel;
	private WorldMap world;
	private ImagesHandler images;

	private List< Point > cellToDraw;
	private boolean startDraw = false;
	private boolean addAnAgent = false;
	private boolean editDirection = false;
	private Direction currentDirection = Direction.NONE;

	
	
	public NewRightPanel(PrincipalPanel parent) {
		this.setOpaque( false );
		images = ImagesHandler.getInstance();
		superiorPanel = parent;
		world = WorldMap.getInstance();
		cellToDraw = new ArrayList< Point >();
		this.setPreferredSize( new Dimension( 52 * 2 * size, 52 * size ) );
		//addMouseListener( new RPanelMouseListener( this, size ) );
		//addMouseMotionListener( new RPanelMouseListener( this, size ) );		
	}



	@Override
	protected void paintComponent(Graphics g) {
		super.paintComponent(g);
		
		for (int i = 0; i < world.getMap().length; i++) {
			for (int j = 0; j < world.getMap()[0].length; j++) {
				
			}
		}
	}
	
	

}
